<?php
$this->breadcrumbs=array(
	AdminModule::t('Users')=>array('index'),
	$model->user_name,
);
?>
<div class="admin_table">
<h1><?php echo AdminModule::t('View User').' "'.$model->user_name.'"'; ?></h1>

<div class="link">
	<?php echo CHtml::link(AdminModule::t('List User'),array('manage')); ?>
</div>

<div class="view_restaurant view_user_management">
<?php 
// For all users
	$attributes = array(
			'user_name',
	);
	
	array_push($attributes,
			array(
			'name' => 'first_name',
			'value' =>$model->first_name,
		),
		array(
			'name' => 'last_name',
			'value' =>$model->last_name,
		),
		array(
			'name' => 'emailID',
			'value' =>$model->last_name,
		),
		array(
			'name' => 'role_id',
			'value' =>Role::model()->find('id=?',array($model->role_id))->name,
		),
		array(
			'name' => 'created',
			'value' => $model->created,
		),
		array(
			'name' => 'lastvisit',
			'value' => (($model->lastvisit)?$model->lastvisit:AdminModule::t('Not visited')),
		)

	);
			
	$this->widget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>$attributes,
	));

?>
</div>
</div>